package com.webapp.domain.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
/**
 * 评论内容
 */
@Entity
public class Score extends BaseEntity {

	private static final long serialVersionUID = 1L;
	
	private Long id;
	private Session session;
	private String content;
	private String level;
	private String satisfied;//标记  满意 不满意
	private String satisfiedContent; //不满意原因
	private Date create_time;
//	private Counselor_score counselor_score;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(length = 2000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getLevel() {
		return level;
	}
	public void setLevel(String level) {
		this.level = level;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	@OneToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="session_id",insertable=true,updatable=true)
	public Session getSession() {
		return session;
	}
	public void setSession(Session session) {
		this.session = session;
	}
	public String getSatisfied() {
		return satisfied;
	}
	public void setSatisfied(String satisfied) {
		this.satisfied = satisfied;
	}
	@Column(length = 2000)
	public String getSatisfiedContent() {
		return satisfiedContent;
	}
	public void setSatisfiedContent(String satisfiedContent) {
		this.satisfiedContent = satisfiedContent;
	}
	
	
	
	
}
